﻿using SmartForm.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartlForm.Model
{
    public class FormPar
    {
        /// <summary>
        /// 窗体名称
        /// </summary>
        public string name = IDUtil.guid();
        /// <summary>
        /// 窗体标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 窗体内置页面
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 窗体宽度
        /// </summary>
        public int width { get; set; }
        /// <summary>
        /// 窗体高度
        /// </summary>
        public int height { get; set; }
        /// <summary>
        ///  最大化
        /// </summary>
        public bool windowMax = false;
        /// <summary>
        ///  最小化
        /// </summary>
        public bool windowMin = false;
        /// <summary>
        /// 是否开启最大化
        /// </summary>
        public bool max = true;
        /// <summary>
        /// 是否开启最小化
        /// </summary>
        public bool min = true;
        /// <summary>
        /// 显示隐藏
        /// </summary>
        public bool display = true;
        //成功回调事件
        public string successFunc { get; set; }

        public string data { get; set; }

        /// <summary>
        /// 最小宽度
        /// </summary>
        public int minWidth { get; set; }
        /// <summary>
        /// 最小高度
        /// </summary>
        public int minHeight { get; set; }
    }
}
